const { resolve } = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin');

const entry = {
  main: resolve(__dirname, 'src', 'index.js'),
  second: resolve(__dirname, 'src', 'second.js'),
}

const output = {
  path: resolve(__dirname, 'build'),
  filename: '[name].js',
  clean: true,
}

const plugins = [
  new HtmlWebpackPlugin()
]

module.exports = {
  entry, 
  output,
  plugins,
  mode: 'development'
}